You are here: Trading System Programming > Reference > Classes > Account > Account Class

Account Class

The Account class represents a trading account instance for an account defined inside ActiveTick. The class is typically used for retrieving account information such as balances, positions, open orders, etc., as well as managing order entry functionality.

 

Syntax

Account

 

Members Table
getBalances() The getBalances method returns a Balances object instance.
getExecutions(symbol, beginTime, endTime) The getExecutions method returns an array of Execution objects.

getOrders()

The getOrders method returns an array of Order objects representing all of currently open orders.
getPositionQuantity(symbol, positionType) This method calculates and returns position quantity for a given symbol and position type.
getPositions(symbol, positionType) The getPositions method returns an array of Position objects representing all open positions.
placeLimitOrder(symbol, quantity, limitPrice, actionType, tifType) The placeLimitOrder method places a limit order inline without the need for creating a separate Order object.
placeMarketOrder(symbol, quantity, actionType, tifType) The placeMarketOrder method places a market order inline without the need for creating a separate Order object.
placeOrder(order) The placeOrder method places an order using a valid Order object.
placeOrderCancel(openOrder) The placeOrderCancel method cancels open order.
placeOrderModify(previousOrder, newOrder) The placeOrderModify method replaces open order with new order.
placeStopLimitOrder(symbol, quantity, limitPrice, stopPrice, actionType, tifType) The placeStopLimitOrder method places a stop limit order inline without the need for creating a separate Order object.
placeStopOrder(symbol, quantity, stopPrice, actionType, tifType) The placeStopOrder method places a stop order inline without the need for creating a separate Order object.

 


Copyright © 2006-2009 ActiveTick LLC